<ion-view view-title="商品信息">
  <ion-nav-buttons side="right">
    <a  class="scor-color-gr-font button button-icon icon ion-ios-cart-outline" ng-click="goToCart()"></a>
  </ion-nav-buttons>
  <ion-content>
    <ion-refresher on-refresh="doRefresh()"
                   pulling-text="下拉刷新..."
                   refreshing-text="拼命加载中..."
                   refreshing-icon="ion-loading-b">
    </ion-refresher>
    <ion-list>
      <a  ng-repeat="good in goodsList" style="width: 100%;height: auto" class="no-decoration-scor">
      <ion-item>
        <div class="row " style="width: 100%;height:auto">
          <div class="col-80 row-bottom">
            <div class=" row">
                <div class="col-90 ">
                  <div class=" row"  style="">
                    <div class="scor-color-gr-font font-weight-700 padding-0-scor">
                      {{good.name}}
                    </div>
                  </div>
                  <div class=" row"  style="">
                    <div class="col  padding-0-scor">
                      {{good.intro}}
                    </div>
                    <div class="col-66  padding-0-scor">
                      <div class=" color-red-scor text-right font-size-18p font-weight-700 ">￥<span>{{good.minPrice || good.spec[0].grprice}}</span></div>
                    </div>
                  </div>
                </div>
            </div>

            <div class="row" ng-repeat="spec in good.spec">
              <label style="min-width: 70px;padding: 2px;" ng-click="selectSpec($index,good,spec)" class="margin-top-sm-scor spec-negative-scor text-center" ng-class="{'spec-active-scor':spec.id==(good.minSpec||good.spec[0].id)}">
                <span >
                  {{spec.pname}}{{spec.name}}

                </span>
              </label>
            </div>
          </div>
          <div class="col-20" style="padding-top: 11%;">
              <button class="button button-assertive" ng-click="createOrder($index,good)">下单</button>
          </div>

        </div>
      </ion-item>
      </a>
    </ion-list>
  </ion-content>
</ion-view>
